// ++++++++++++++++++++++++++++++++++++++++
// 《Go Web编程实战派从入门到精通》源码
// ++++++++++++++++++++++++++++++++++++++++
// Author:廖显东（ShirDon）
// Blog:https://www.shirdon.com/
// 仓库地址：https://gitee.com/shirdonl/goWebActualCombat
// 仓库地址：https://github.com/shirdonl/goWebActualCombat
// ++++++++++++++++++++++++++++++++++++++++
package main

import "fmt"

func main() {
	var a = "love"
	switch a {
	case "love":
		fmt.Println("love")
	case "programming":
		fmt.Println("programming")
	default:
		fmt.Println("none")
	}

	var language = "golang"
	switch language {
	case "golang", "java":
		fmt.Println("program")
	}

	var r int = 11
	switch {
	case r > 10 && r < 20:
		fmt.Println(r)
	}
}
